﻿<ion-view view-title="我" cache-view="false" ng-init="init()" hide-back-button="true">
  <ion-content>
    <section class="g_main">
      <!-- 个人信息 -->
      <section class="my_info" ng-click="toInfo()">
        <img ng-src="{{userInfo.photo_url||'img/zzz_header.jpg'}}" alt="">
        <div class="user_info openwebview">
          <div class="name">
            <strong>
              {{userInfo.name ? userInfo.name + (userInfo.photo_url?'':'(未设置)') : "未设置"}}
            </strong>
            <!--span class="icon_star star_{{userInfo.auth_level||'0'}}">
              {{userInfo.auth_level||'0'}}星
            </span-->
          </div>
          <div class="company">
            <i class="icon icon_tag_qi" ng-show="p_auth_state === 2 && (userInfo.member_type === 3 || userInfo.is_corp===true)">
              企业认证
            </i>
            <i class="icon icon_tag_shi" ng-show="p_auth_state === 2">
              实名认证
            </i>
            <i class="icon icon_tag_che" ng-show="userInfo.member_type == 2">
              有车
            </i>
            <i class="icon icon_tag_ship" ng-show="userInfo.member_type == 4">
              有船
            </i>
            <em>
              {{corp_name}}
            </em>
          </div>
        </div>
      </section>
      <!-- 个人信息操作面板 -->
      <section class="my_info_option">
        <ul>
          <li ng-if="userInfo.member_type==2||userInfo.member_type==4" ng-click="toMyInfo('publish/edit')">
            <i class="icon icon_my_info_1">
            </i>
            <span>
              发布
            </span>
          </li>
          <li ng-click="toWaybill('waybill')">
            <i class="icon icon_my_info_9">
            </i>
            <span>
              我的运单
            </span>
          </li>
          <li ng-click="toMyInfo('wallet')">
            <i class="icon icon_my_info_2">
            </i>
            <span>
              钱包
            </span>
          </li>
          <li ng-click="toMyInfo('verify')">
            <i class="icon icon_my_info_3">
            </i>
            <span>
              认证
            </span>
          </li>
          <li ng-if="userInfo.member_type==2">
            <i class="icon icon_my_info_4">
            </i>
            <span>
              加盟
            </span>
          </li>
          <li ng-if="userInfo.member_type==3" ng-click="toMyInfo('linemanage')">
            <i class="icon icon_my_info_5">
            </i>
            <span>
              专线管理
            </span>
          </li>
          <li ng-if="userInfo.member_type==3" ng-click="toMyInfo('corpinfo')">
            <i class="icon icon_my_info_6">
            </i>
            <span>
              综合运输
            </span>
          </li>
          <!--li>
            <i class="icon icon_my_info_7">
            </i>
            <span>
              设置
            </span>
          </li-->
          <a href="tel:{{phone||'40000000000000'}}">
          <li>
            <i class="icon icon_my_info_8">
            </i>
            <span>
              联系我们
            </span>
          </li></a>
          <li ng-click="toMyInfo('baseinfo')">
            <i class="icon icon_my_info_9">
            </i>
            <span>
              常用信息
            </span>
          </li>
          <li ng-click="toMyInfo('modifypwd')">
            <i class="icon icon_my_info_1">
            </i>
            <span>
              修改密码
            </span>
          </li>
          <li>
            <i class="icon icon_my_info_7"  ng-click="toShop()">
            </i>
            <span>
              积分商城
        </span>
          </li>
          <li ng-click="toWaybillInfo()">
            <i class="icon icon_my_info_1">
            </i>
            <span>
              消息中心
            </span>
          </li>
          <li ng-click="toMyInfo('aboutus')">
            <i class="icon icon_my_info_10">
            </i>
            <span>
              关于我们
            </span>
          </li>
          <li ng-click="logout()">
            <i class="icon icon_my_info_2">
            </i>
            <span>
              注销
            </span>
          </li>
        </ul>
      </section>
    </section>
  </ion-content>
  <footer class="g_footer">
    <section class="foot_menu">
      <ul>
        <li class="m_index" ng-click="toHome()"><a class='openwebview'>首页</a></li>
        <li class="m_find" ng-click="toFind()"><a class='openwebview'>发现</a></li>
        <li class="m_find" ng-click="toCar()"><a class='openwebview'>车源信息</a></li>
        <li class="m_find" ng-click="toship()"><a class='openwebview'>船源信息</a></li>
        <li class="m_list" ng-click="tochatList()"><a class='openwebview'>对话</a></li>
        <li class="m_my current" ng-click="toMine()"><a class='openwebview'>我</a></li>
      </ul>
    </section>
  </footer>
</ion-view>
